import request from '@/utils/request'
// ------------------------------------------------公共接口 start--------------------------------------------
//机构查询
export function getAllUpperCompany(data) {
  return request({
      url: 'lclaim-apis/api/ims/getAllUpperCompany',
      method: 'post',
      data: data
  })
}
// 查询配置信息
export function queryCodeList(data) {
  return request({
      url: 'lclaim-dms/dms/config/queryCodeList',
      method: 'post',
      data: data
  })
}
// 查询区域
export function queryRegionTree(data) {
  return request({
      url: 'lclaim-dms/dms/config/queryRegionTree',
      method: 'post',
      data: data
  })
}
// 查询公共列表接口
export function queryProcessEngineList(data) {
  return request({
      url: 'lclaim-task/task/common/queryProcessEngineList',
      method: 'post',
      data: data
  })
}
//字典取值
export function MedType(data) {
  return request({
      url: 'lclaim-dms/dms/config/queryCodeList',
      method: 'post',
      data: data
  })
}
//查询医疗机构
export function queryHospCompanyList(data) {
  return request({
      url: 'lclaim-dms/basic/queryHospCompanyList',
      method: 'post',
      data: data
  })
}
//单证上传接口
export function imgUPload(data) {
  return request({
      url: 'lclaim-apis/api/img/imgUPload',
      method: 'post',
      data: data
  })
}
//查看单证接口
export function imgQueryShow(bussNo) {
  return request({
      url: 'lclaim-apis/api/img/imgQueryShow',
      method: 'post',
      data: {
              bussNo
           }
  })
}
//路由接口
export function getRoute(data) {
  return request({
      url: 'lclaim-apis/api/ims/queryMenuListByCondition',
      method: 'post',
      data: data
    })
}

// 查询银行大类
export function queryBankClassList(data) {
  return request({
      url: 'lclaim-apis/api/common/queryBankClassList',
      method: 'post',
      data: data
    })
}
// 查询银行信息
export function queryBankInfo(data) {
  return request({
      url: 'lclaim-apis/api/common/queryBankInfo',
      method: 'post',
      data: data
    })
}
// 查询银行区域(此方法需要自己写三级联动 需传两个参数：level-级别 1.省2.市3.区;  parentCode-父编码)
export function queryBankRegionInfo(data) {
  return request({
      url: 'lclaim-apis/api/common/queryBankRegionInfo',
      method: 'post',
      data: data
    })
}
// 查询银行区域树
export function queryBankRegionTree(data) {
  return request({
      url: 'lclaim-apis/api/common/queryBankRegionTree',
      method: 'post',
      data: data
    })
}
//占位检查
export function taskCheck(data) {
  return request({
      url: 'lclaim-task/task/common/taskCheck',
      method: 'post',
      data: data
    })
}
// 查询所有机构
export function queryCompanyByCondition(data) {
  return request({
      url: 'lclaim-apis/api/ims/findCompanyByCondition',
      method: 'post',
      data: data
    })
}
// 查询三级机构以上的机构列表
export function queryCompany(data) {
  return request({
      url: 'lclaim-apis/api/ims/findCompany',
      method: 'post',
      data: data
    })
}
// 根据机构代码获取所有下级机构
export function queryAllLowerCompanys(data) {
  return request({
      url: 'lclaim-apis/api/ims/getAllLowerCompanys',
      method: 'post',
      data: data
    })
}
// 根据机构代码获取所有上级机构
export function queryAllUpperCompany(data) {
  return request({
      url: 'lclaim-apis/api/ims/getAllUpperCompany',
      method: 'post',
      data: data
    })
}
// 根据机构代码获取所有下级机构非末级机构
export function queryAllLowerCompanysList(data) {
  return request({
      url: 'lclaim-apis/api/ims/getAllLowerCompanysList',
      method: 'post',
      data: data
    })
}
// 查询岗位下人员信息
export function queryGradeTaskUserList(data) {
  return request({
      url: 'lclaim-apis/api/ims/queryGradeTaskUser',
      method: 'post',
      data: data
    })
}

// ------------------------------------------------公共接口 end-----------------------------------------------

// ------------------------------------------------首页 start---------------------------------------------
// 大病首页
export function queryHomeInfo(data) {
  return request({
      url: 'lclaim-task/task/home/queryHomeInfo',
      method: 'post',
      data: data
  })
}

//大病首页赔案号查询
export function queryHomeCaseInfo(data) {
  return request({
    url: 'lclaim-task/task/process/queryHomeCaseInfo',
    method: 'post',
    data: data
  })
}

export function updateUserShourt(data) {
  return request({
    url: 'lclaim-task/task/common/updateUserShourt',
    method: 'post',
    data: data
  })
}
export function selectUserShourts(data) {
  return request({
    url: 'lclaim-task/task/common/selectUserShourts',
    method: 'post',
    data: data
  })
}
// ------------------------------------------------首页 end---------------------------------------------

// ------------------------------------------------案件管理 start---------------------------------------------
// 查询案件详情
export function getPolicyNoInfo(data) {
  return request({
      url: 'lclaim-apis/api/prpll/queryPolicyNoInfo',
      method: 'post',
      data: data
  })
}
// 查询案件登记列表
export function queryCasePolicyNoList(data) {
  return request({
      url: 'lclaim-apis/api/prpll/queryCasePolicyNoList',
      method: 'post',
      data: data
  })
}
// 案件详情暂存
export function saveCase(data) {
  return request({
      url: 'lclaim-task/task/process/saveCase',
      method: 'post',
      data: data
  })
}



//汇总
export function kindSummary(data) {
  return request({
      url: 'lclaim-task/task/process/riskSummaryDetail',
      method: 'post',
      data: data
  })
}
//科室接口
export function queryDeptmentTypeTree(data) {
  return request({
      url: 'lclaim-dms/dms/config/queryDeptmentTypeTree',
      method: 'post',
      data: data
  })
}

//疾病查询接口
export function queryDiseaseLists(data) {
  return request({
      url: 'lclaim-dms/basic/queryDiseaseList',
      method: 'post',
      data: data
  })
}
//案件详情回显

export function queryCaseDetailedInfo(data) {
  return request({
      url: 'lclaim-task/task/process/queryCaseDetailedInfo',
      method: 'post',
      data: data
  })
}
//案件处理暂存提交案件查询
export function queryPyeeInfoList(data) {
  return request({
    url: 'lclaim-task/task/payee/selectByPayeeList',
    method: 'post',
    data: data
  })
}
//分摊
export function automationCfeecoins(data) {
  return request({
    url: 'lclaim-task/task/process/automationCfeecoins',
    method: 'post',
    data: data
  })
}
//账户信息查询
export function queryAccountListByPage(data) {
  return request({
    url: 'lclaim-task/task/payee/queryAccountListByPage',
    method: 'post',
    data: data
  })
}
// 批量理赔模板导出
export function exportBatchClaimTemplate(data) {
  return request({
    url: 'lclaim-report/report/export/exportBatchClaimTemplate',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 批量理赔案件导入
export function importCaseInfo(data) {
  return request({
    url: 'lclaim-report/report/import/importCaseInfo',
    method: 'post',
    data: data
  })
}
// 批量理赔结果查询 （未使用）
export function queryBatchCase(data) {
  return request({
    url: 'lclaim-task/task/batch/queryBatchCase',
    method: 'post',
    data: data
  })
}
// 批量理赔案件导出
export function exporttBatchClaim(data) {
  return request({
    url: 'lclaim-report/report/export/exporttBatchClaim',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 批量理赔导入成功的案件
export function queryBatchSuccessCase(data) {
  return request({
    url: 'lclaim-task/task/batch/queryBatchSuccessCase',
    method: 'post',
    data: data
  })
}
//历史赔案信息
export function queryCaseInfoHistory(data) {
  return request({
    url: 'lclaim-task/task/process/queryCaseInfoHistory',
    method: 'post',
    data: data
  })
}
//就诊医疗目录下拉查询
export function queryDrugList(data) {
  return request({
    url: '/lclaim-dms/basic/queryDrugList',
    method: 'post',
    data: data
  })
}
//险别责任
export function queryClaimItemKindsMsg(data) {
  return request({
    url: 'lclaim-apis/api/prpll/queryClaimItemKindsMsg',
    method: 'post',
    data: data
  })
}
// ------------------------------------------------案件管理 end---------------------------------------------

// ------------------------------------------------调查管理 start---------------------------------------------
// 调查任务申请 查询
export function querySurveyTask(data) {
  return request({
    url: 'lclaim-task/task/survey/querySurveyTask',
    method: 'post',
    data: data
  })
}
// 调查任务申请 添加
export function saveCaseSurvey(data) {
  return request({
    url: 'lclaim-task/task/survey/saveCaseSurvey',
    method: 'post',
    data: data
  })
}
// 调查任务处理 查询
export function queryCaseSurveyDetail(data) {
  return request({
    url: 'lclaim-task/task/survey/queryCaseSurveyDetail',
    method: 'post',
    data: data
  })
}
// 调查任务处理 提交
export function submitCaseSurvey(data) {
  return request({
    url: 'lclaim-task/task/survey/submitCaseSurvey',
    method: 'post',
    data: data
  })
}
// 调查任务审核查询
export function queryCaseSurveyAudit(data) {
  return request({
    url: 'lclaim-task/task/survey/queryCaseSurveyAudit',
    method: 'post',
    data: data
  })
}
// 调查任务审核 提交
export function auditCaseSurvey(data) {
  return request({
    url: 'lclaim-task/task/survey/auditCaseSurvey',
    method: 'post',
    data: data
  })
}
// 调查任务历史轨迹
export function querySurveyHistory(data) {
  return request({
    url: 'lclaim-task/task/survey/querySurveyHistory',
    method: 'post',
    data: data
  })
}
// ------------------------------------------------调查管理 end---------------------------------------------

// ------------------------------------------------注销管理 start---------------------------------------------
// 注销申请案件列表
export function queryCancelTask(data) {
  return request({
    url: '/lclaim-task/task/cancel/queryCancelTask',
    method: 'post',
    data: data
  })
}

// 注销申请提交
export function saveCaseCancel(data) {
  return request({
    url: '/lclaim-task/task/cancel/saveCaseCancel',
    method: 'post',
    data: data
  })
}
// 注销任务详情
export function queryCaseCancelDetail(data) {
  return request({
    url: '/lclaim-task/task/cancel/queryCaseCancelDetail',
    method: 'post',
    data: data
  })
}
// 注销审核
export function auditCaseCancel(data) {
  return request({
    url: '/lclaim-task/task/cancel/auditCaseCancel',
    method: 'post',
    data: data
  })
}
// ------------------------------------------------注销管理 end---------------------------------------------

// ------------------------------------------------核赔管理 start---------------------------------------------
// 核赔查询
export function queryProcessEngineLists(data) {
  return request({
      url: 'lclaim-task/task/common/queryProcessEngineList',
      method: 'post',
      data: data
  })
}
// 核赔详情查询
export function queryUndwrtInfo(data) {
  return request({
      url: 'lclaim-task/task/process/queryCaseDetailedInfo',
      method: 'post',
      data: data
  })
}
//核赔提交
export function submittedUndwrit(data) {
  return request({
      url: 'lclaim-task/task/undwrt/submittedUndwrit',
      method: 'post',
      data: data
  })
}


// ------------------------------------------------核赔管理 end---------------------------------------------

// ------------------------------------------------结算管理 start---------------------------------------------
// 申请结算列表
export function querySettleCaseInfo(data) {
  return request({
      url: 'lclaim-task/task/settle/querySettleCaseInfo',
      method: 'post',
      data: data
  })
}
// 结算申请
export function applySettlement(data) {
  return request({
      url: 'lclaim-task/task/settle/applySettlement',
      method: 'post',
      data: data
  })
}
// 结算提交/暂存
export function submitSettlement(data) {
  return request({
      url: 'lclaim-task/task/settle/submitSettlement',
      method: 'post',
      data: data
  })
}
// 查询结算详情信息
export function querySettlementDetail(data) {
  return request({
      url: 'lclaim-task/task/settle/querySettlementDetail',
      method: 'post',
      data: data
  })
}
// 结算审核
export function auditSettlement(data) {
  return request({
      url: 'lclaim-task/task/settle/auditSettlement',
      method: 'post',
      data: data
  })
}
// ------------------------------------------------结算管理 end---------------------------------------------

// ------------------------------------------------退票管理 start---------------------------------------------
// 查询退票列表
export function queryRefundTicketList(data) {
  return request({
      url: 'lclaim-task/task/refund/queryRefundTicketList',
      method: 'post',
      data: data
  })
}
//  查询退票明细
export function queryRefundTicketDetail(data) {
  return request({
      url: 'lclaim-task/task/refund/queryRefundTicketDetail',
      method: 'post',
      data: data
  })
}
// 提交退票
export function submitRefundTicket(data) {
  return request({
      url: 'lclaim-task/task/refund/submitRefundTicket',
      method: 'post',
      data: data
  })
}
// 查询退票审核任务
export function queryRefundTicketAuditList(data) {
  return request({
      url: 'lclaim-task/task/refund/queryRefundTicketAuditList',
      method: 'post',
      data: data
  })
}
// 审核退票
export function auditRefundTicket(data) {
  return request({
      url: 'lclaim-task/task/refund/auditRefundTicket',
      method: 'post',
      data: data
  })
}
// ------------------------------------------------退票管理 end---------------------------------------------

// ------------------------------------------------重开管理 start---------------------------------------------
// 重开 根据任务号查询信息
export function getQueryByCaseNo(data) {
  return request({
    url: '/lclaim-task/task/recase/queryByCaseNo',
    method: 'post',
    data: data
  })
}
// 重开 发起申请
export function getSubmitRecase(data) {
  return request({
    url: 'lclaim-task/task/recase/submitRecase',
    method: 'post',
    data: data
  })
}
// 重开 按条件查询
export function getQueryRecase(data) {
  return request({
    url: '/lclaim-task/task/recase/queryRecase',
    method: 'post',
    data: data
  })
}
// 重开 发起审核
export function getAuditRecase(data) {
  return request({
    url: '/lclaim-task/task/recase/auditRecase',
    method: 'post',
    data: data
  })
}

// ------------------------------------------------重开管理 end---------------------------------------------

// ------------------------------------------------打印管理 start---------------------------------------------
// 查询打印列表
export function querySettleBillList(data) {
  return request({
    url: 'lclaim-task/task/report/querySettleBillList',
    method: 'post',
    data: data
  })
}
// 打印结算单
export function printSettleBill(data) {
  return request({
    url: 'lclaim-report/report/print/printSettleBill',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}
export function previewSettleBill(data) {
  return request({
    url: 'lclaim-report/report/print/previewSettleBill',
    method: 'post',
    data: data
  })
}
// ------------------------------------------------打印管理 end---------------------------------------------

// ------------------------------------------------辅助功能 start---------------------------------------------
// 领款人 全查
export function getQueryAccountListByPage(data) {
  return request({
    url: 'lclaim-task/task/payee/queryAccountListByPage',
    method: 'post',
    data: data
  })
}
// 领款人  添加
export function savePrpLAccount(data) {
  return request({
    url: 'lclaim-task/task/payee/savePrpLAccount',
    method: 'post',
    data: data
  })
}
// 领款人 条件查
export function queryAccount(data) {
  return request({
    url: 'lclaim-task/task/payee/queryAccount',
    method: 'post',
    data: data
  })
}// 领款人 修改
export function updateAccountById(data) {
  return request({
    url: 'lclaim-task/task/payee/updateAccountById',
    method: 'post',
    data: data
  })
}// 领款人 删除
export function deleteAccountById(data) {
  return request({
    url: 'lclaim-task/task/payee/deleteAccountById',
    method: 'post',
    data: data
  })
}


// 查询改派任务
export function queryReassignTask(data) {
  return request({
      url: 'lclaim-task/task/common/queryReassignTask',
      method: 'post',
      data: data
  })
}
// 任务改派
export function updateReassignTask(data) {
  return request({
      url: 'lclaim-task/task/common/updateReassignTask',
      method: 'post',
      data: data
  })
}
// ------------------------------------------------辅助功能 end---------------------------------------------

// ------------------------------------------------基础信息管理 start---------------------------------------------
// ------------------------------------------------基础信息管理 end---------------------------------------------

// ------------------------------------------------统计分析 start---------------------------------------------
// 案件清单
export function queryInfoCaseReport(data) {
  return request({
      url: 'lclaim-task/task/report/queryInfoCaseReport',
      method: 'post',
      data: data
  })
}
// 导出案件清单
export function exportCaseReportInfo(data) {
    return request({
        url: 'lclaim-report/report/export/exportCaseReportInfo',
        method: 'post',
        data: data,
        responseType: 'blob'
    })
}
// ------------------------------------------------统计分析 end---------------------------------------------

// ------------------------------------------------案件查询 start---------------------------------------------

//案件查询模块所有案件查询
export function queryProcessedTasksList(data) {
  return request({
    url: 'lclaim-task/task/common/queryProcessedTasksList',
    method: 'post',
    data: data
  })
}

//案件处理暂存提交案件查询
export function queryCaseDisposeInfoList(data) {
  return request({
    url: 'lclaim-task/task/process/caseDisposeInfoList',
    method: 'post',
    data: data
  })
}



// ------------------------------------------------案件查询 end---------------------------------------------
